package com.jiantong.work.service;

import com.jiantong.work.model.PollutionControl;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 *
 */
public interface PollutionControlReadService {

    /**
     * 养殖场根据id 查找
     * @param id
     * @return
     */
    Response<PollutionControl> findById(Long id);
    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);

    /**
     * 养殖场根据状态查询
     * @return
     * status
     */
    Response<Paging<PollutionControl>> pagingPollutionControl(Integer pageNo, Integer pageSize,Integer status,Long breedFactoryId);
    /**i
     * 养殖场做合
     * @return status =1
     */
    Response<Map> sumDryAndLiquidByBreedFactoryId(Long breedFactoryId);

    Response<Map> sumDryAndLiquidByBreedFactoryId(Map map);

    /**
     * 政府端查询求和
     */
    Response<Map>sumGovernment(Long breedFactoryId,Date fromDate,Date toDate);
    /**
     * 政府端根据时间查询
     * status==1
     */
    Response<Paging<PollutionControl>> pagingPollutionControls(Integer pageNo, Integer pageSize,Long breedFactoryId,Integer breedType,Date fromDate,Date toDate);

    /**
     * 根据养殖场id查询
     * @param breedFactoryId
     * @return
     */
    Response<PollutionControl> findByFactoryId(Long breedFactoryId);

    Response<Paging<PollutionControl>> pagingAll(Integer pageNo, Integer pageSize, List<Long> ids, Date fromDate, Date toDate);

    Response<Map<String,Object>> sumPollutionForWeb(Map<String, Object> map);
}
